package com.training.java.core.homework05;

public class Student extends Person {

	public Student(double cashOfOrganization, double cashOfIndividual) {
		super(cashOfOrganization, cashOfIndividual);
	}

	public void activity() {
		System.out.println("Student pays school fees");
	}

	@Override
	public void debit(double fee) {
		super.setCashOfOrganization(super.getCashOfOrganization() + fee);

		System.out.println("School fees debits school's account");
	}

	@Override
	public void credit(double payment) {
		super.setCashOfIndividual(super.getCashOfIndividual() - payment);

		System.out.println("School fees credits student's account");
	}

	public double getCashOfIRS() {
		return 0.0;
	}
}
